package com.simple.piger.utils.dingding;


import com.simple.piger.utils.GsonHelper;

import java.util.HashMap;
import java.util.Map;

/**
 * @author baolw
 * @date 2018/1/16 16:51
 */
public class SendResult {
    private boolean isSuccess;
    private String errmsg;
    private Integer errcode;


    public SendResult() {
    }

    public Integer getErrcode() {
        return errcode;
    }

    public void setErrcode(Integer errcode) {
        this.errcode = errcode;
    }

    public boolean isSuccess() {
        return this.isSuccess;
    }

    public void setIsSuccess(boolean isSuccess) {
        this.isSuccess = isSuccess;
    }


    public String getErrmsg() {
        return errmsg;
    }

    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }

    public String toString() {
        Map<String, Object> items = new HashMap();
        items.put("errorCode", this.errcode);
        items.put("errorMsg", this.errmsg);
        items.put("isSuccess", this.isSuccess);
        return GsonHelper.toJson(items);
    }
}
